<template>
  Child
  <button @click="throwError">throwError</button>
 </template>
 <script>
export default {
  setup(){
    const throwError = ()=>{
      throw new Error(`This is an error from Child component`);
    }
    return {
      throwError
    }
  }
}
 </script>